package com.lmb.mapper;

import com.lmb.bean.Houses;
import com.lmb.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HousesDao {
    int add(@Param("house") Houses house);

    int del(@Param("id")Integer id);

    int edit(@Param("house") Houses house);

    Houses one(@Param("id")Integer id);

    List<Houses> all(@Param("house") Houses house);

    int pageCount(@Param("house") Houses house);

    List<Houses> page(@Param("page") Page page, @Param("house") Houses house);
}
